#include<stdio.h>
#include<unistd.h>

int main()
{
    printf("我要进程程序替换了!\n");
    char* const set[] = {"ls","-l",NULL};
    int n = execv("/usr/bin/ls",set);
    if(n == -1)
    {
        perror("execv");
    }
    printf("程序替换完毕\n");

    return 0;
}
